package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetAppVersionMapper;
import com.ruoyi.system.domain.HatchetAppVersion;
import com.ruoyi.system.service.IHatchetAppVersionService;
import com.ruoyi.common.support.Convert;

/**
 * APP版本管理 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-18
 */
@Service
public class HatchetAppVersionServiceImpl implements IHatchetAppVersionService 
{
	@Autowired
	private HatchetAppVersionMapper hatchetAppVersionMapper;

	/**
     * 查询APP版本管理信息
     * 
     * @param id APP版本管理ID
     * @return APP版本管理信息
     */
    @Override
	public HatchetAppVersion selectHatchetAppVersionById(String id)
	{
	    return hatchetAppVersionMapper.selectHatchetAppVersionById(id);
	}
	
	/**
     * 查询APP版本管理列表
     * 
     * @param hatchetAppVersion APP版本管理信息
     * @return APP版本管理集合
     */
	@Override
	public List<HatchetAppVersion> selectHatchetAppVersionList(HatchetAppVersion hatchetAppVersion)
	{
	    return hatchetAppVersionMapper.selectHatchetAppVersionList(hatchetAppVersion);
	}
	
    /**
     * 新增APP版本管理
     * 
     * @param hatchetAppVersion APP版本管理信息
     * @return 结果
     */
	@Override
	public int insertHatchetAppVersion(HatchetAppVersion hatchetAppVersion)
	{
	    return hatchetAppVersionMapper.insertHatchetAppVersion(hatchetAppVersion);
	}
	
	/**
     * 修改APP版本管理
     * 
     * @param hatchetAppVersion APP版本管理信息
     * @return 结果
     */
	@Override
	public int updateHatchetAppVersion(HatchetAppVersion hatchetAppVersion)
	{
	    return hatchetAppVersionMapper.updateHatchetAppVersion(hatchetAppVersion);
	}

	/**
     * 删除APP版本管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetAppVersionByIds(String ids)
	{
		return hatchetAppVersionMapper.deleteHatchetAppVersionByIds(Convert.toStrArray(ids));
	}
	
}
